Class org.omg.CORBA.NVList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.omg.CORBA.NVList

java.lang.Object
   |
   +----org.omg.CORBA.NVList

public class NVList
extends Object
The NVList class is used in the request operations to describe arguments, as well as in the Context object to describe context values. It maintains a modifiable list of NamedValues, each of which consists of a string name, an Any value and an integer flag.
See Also:
NamedValue, Context

Constructor Index

 o NVList()

Method Index

 o add(int)
Add a NamedValue with the given flags.
 o add_item(String, int)
Add a NamedValue with the given name and flags.
 o add_value(String, Any, int)
Add a NamedValue with the given flags.
 o count()
A count of number of NamedValues in the NVList
 o item(int)
Return the NamedValue at the given index
 o remove(int)
Remove the NamedValue at the given index.

Constructors

 o NVList
  public NVList()

Methods

 o count
  public abstract int count() throws SystemException
A count of number of NamedValues in the NVList
Returns:
number of NamedValues in the NVList.
 o add
  public abstract NamedValue add(int flags) throws SystemException
Add a NamedValue with the given flags.
Parameters:
flags - flags for the new NamedValue.
Returns:
the NamedValue created.
 o add_item
  public abstract NamedValue add_item(String itemName,
                                      int flags) throws SystemException
Add a NamedValue with the given name and flags.
Parameters:
itemName - the name for the new NamedValue.
flags - flags for the new NamedValue.
Returns:
the NamedValue created.
 o add_value
  public abstract NamedValue add_value(String itemName,
                                       Any val,
                                       int flags) throws SystemException
Add a NamedValue with the given flags.
Parameters:
itemName - the name for the new NamedValue.
value - the Any value for the new NamedValue.
flags - flags for the new NamedValue.
Returns:
the NamedValue created.
 o item
  public abstract NamedValue item(int index) throws Bounds, SystemException
Return the NamedValue at the given index
Parameters:
index - the index of NamedValue desired.
Returns:
the NamedValue at the given index.
Throws: Bounds
raised if the index is greater than or equal to number of NamedValues.
 o remove
  public abstract void remove(int index) throws Bounds, SystemException
Remove the NamedValue at the given index. Note that the indices of all NamedValues following this one are shifted down by one.
Parameters:
index - the index of NamedValue to be removed.
Throws: Bounds
raised if the index is greater than or equal to number of NamedValues.

All Packages  Class Hierarchy  This Package  Previous  Next  Index